/*
 * Copyright (C) 2016 MediaTek Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See http://www.gnu.org/licenses/gpl-2.0.html for more details.
 */

#ifndef _OV31870MIPI_SETTING_V1_H_
#define _OV31870MIPI_SETTING_V1_H_

static kal_bool g_pdaf_vc_full_size_enabled;

kal_uint16 addr_data_pair_init_ov13870_v1[] = {
	0x0103, 0x01,
	0x0300, 0xf8,
	0x0300, 0xf8,
	0x0300, 0xf8,
	0x0300, 0xf8,
	0x0301, 0x24,
	0x0302, 0x10,
	0x0303, 0x00,
	0x0304, 0x25,
	0x031a, 0x01,
	0x0316, 0x5a,
	0x0317, 0x00,
	0x0318, 0x05,
	0x031d, 0x0b,
	0x0320, 0x12,
	0x031e, 0x09,
	0x300d, 0x11,
	0x3012, 0x41,
	0x3016, 0xb4,
	0x3018, 0xf0,
	0x3019, 0xe1,
	0x301b, 0x16,
	0x3023, 0xb4,
	0x3028, 0x0f,
	0x3106, 0x00,
	0x3400, 0x00,
	0x340c, 0x0c,
	0x340d, 0xce,
	0x3501, 0x0c,
	0x3502, 0xe1,
	0x3503, 0x80,
	0x3505, 0x80,
	0x3507, 0x00,
	0x3508, 0x04,
	0x3509, 0x00,
	0x350a, 0x00,
	0x350b, 0x01,
	0x350e, 0x00,
	0x350f, 0x01,
	0x350c, 0x04,
	0x350d, 0x00,
	0x3511, 0x02,
	0x3512, 0x00,
	0x3600, 0x00,
	0x3602, 0x0a,
	0x3603, 0x00,
	0x3608, 0xd7,
	0x360a, 0x70,
	0x360b, 0x0b,
	0x360c, 0x3a,
	0x360d, 0x47,
	0x360e, 0x02,
	0x3611, 0x06,
	0x3612, 0x12,
	0x3613, 0x22,
	0x3618, 0x94,
	0x3619, 0x83,
	0x361a, 0x24,
	0x3621, 0x88,
	0x3622, 0x68,
	0x3623, 0x58,
	0x3624, 0x83,
	0x3626, 0x99,
	0x3627, 0x60,
	0x3628, 0x84,
	0x3629, 0x00,
	0x362a, 0x05,
	0x3632, 0x00,
	0x3633, 0x0a,
	0x3634, 0x10,
	0x3635, 0x10,
	0x3636, 0x10,
	0x3652, 0xff,
	0x3653, 0xff,
	0x3660, 0x40,
	0x3661, 0x0c,
	0x3662, 0x40,
	0x3663, 0x00,
	0x3666, 0xa5,
	0x366a, 0x10,
	0x366c, 0x54,
	0x4a00, 0x08,
	0x3680, 0x08,
	0x369e, 0x00,
	0x369f, 0x2a,
	0x36a0, 0x00,
	0x36a1, 0x64,
	0x36a2, 0x00,
	0x36a3, 0x8c,
	0x36a4, 0x00,
	0x36a5, 0xbc,
	0x36a6, 0x00,
	0x36a7, 0xe0,
	0x36a8, 0x00,
	0x36a9, 0xf4,
	0x36aa, 0x01,
	0x36ab, 0x04,
	0x36ac, 0x01,
	0x36ad, 0x04,
	0x36ae, 0x01,
	0x36af, 0x04,
	0x3687, 0x88,
	0x3688, 0x88,
	0x3689, 0x88,
	0x368a, 0x88,
	0x368b, 0x08,
	0x3700, 0x26,
	0x3701, 0x1c,
	0x3702, 0x54,
	0x3703, 0x28,
	0x3704, 0x24,
	0x3705, 0x00,
	0x3706, 0x50,
	0x3707, 0x08,
	0x3708, 0x2e,
	0x3709, 0xce,
	0x370a, 0x00,
	0x370b, 0xe4,
	0x370c, 0x06,
	0x370f, 0x0a,
	0x3710, 0x30,
	0x3711, 0x00,
	0x3712, 0x40,
	0x3714, 0x67,
	0x3715, 0x00,
	0x3717, 0x02,
	0x3718, 0x14,
	0x3719, 0x31,
	0x371a, 0x1c,
	0x371b, 0xd2,
	0x371c, 0x04,
	0x371d, 0x20,
	0x371e, 0x13,
	0x371f, 0x0a,
	0x3720, 0x03,
	0x3722, 0x33,
	0x3723, 0x08,
	0x3724, 0x34,
	0x3725, 0x30,
	0x3726, 0x20,
	0x372b, 0x00,
	0x372d, 0x00,
	0x3730, 0x06,
	0x3731, 0x06,
	0x3732, 0x06,
	0x3733, 0x06,
	0x3734, 0x06,
	0x3735, 0x06,
	0x3736, 0x0a,
	0x3737, 0x02,
	0x3738, 0x0a,
	0x3739, 0x02,
	0x373a, 0x0a,
	0x373b, 0x28,
	0x373c, 0x0a,
	0x373d, 0x2a,
	0x373e, 0x0a,
	0x373f, 0x20,
	0x3740, 0x06,
	0x3741, 0x04,
	0x3742, 0x06,
	0x3743, 0x0a,
	0x3744, 0x0e,
	0x3745, 0x0a,
	0x3746, 0x0e,
	0x3747, 0x50,
	0x3748, 0x00,
	0x3749, 0xf0,
	0x374a, 0x14,
	0x374b, 0x34,
	0x374d, 0x1e,
	0x374c, 0x00,
	0x374e, 0x3e,
	0x374f, 0x0f,
	0x3750, 0x0f,
	0x3751, 0x06,
	0x3754, 0xee,
	0x375a, 0x08,
	0x375b, 0x00,
	0x375c, 0x00,
	0x375d, 0x00,
	0x375e, 0x00,
	0x3764, 0x54,
	0x3765, 0x46,
	0x3768, 0x20,
	0x376a, 0x10,
	0x3781, 0x38,
	0x3798, 0x00,
	0x37c0, 0x08,
	0x37c1, 0x02,
	0x37c2, 0x08,
	0x37c3, 0x04,
	0x37c4, 0x06,
	0x37c5, 0x06,
	0x37c6, 0x06,
	0x37c7, 0x06,
	0x37c8, 0x02,
	0x37c9, 0x04,
	0x37ca, 0x02,
	0x37cb, 0x1c,
	0x37cc, 0x04,
	0x37cd, 0x02,
	0x37ce, 0x0a,
	0x37cf, 0x02,
	0x37d0, 0x0a,
	0x37d1, 0x02,
	0x37d2, 0x0a,
	0x37d3, 0x02,
	0x37d4, 0x04,
	0x37d5, 0x0c,
	0x37d6, 0x1a,
	0x37d7, 0x2a,
	0x37d8, 0x06,
	0x37e0, 0x1c,
	0x37e1, 0x04,
	0x37e2, 0x06,
	0x37e4, 0x0a,
	0x37e5, 0x0e,
	0x37e6, 0x0c,
	0x37e7, 0x14,
	0x37e8, 0x06,
	0x37e9, 0x2e,
	0x37eb, 0x06,
	0x37ec, 0x06,
	0x37ed, 0x0a,
	0x37ee, 0x02,
	0x37f0, 0x0a,
	0x37f1, 0x02,
	0x37f2, 0x0a,
	0x37f3, 0x02,
	0x37f6, 0x1a,
	0x37f7, 0x02,
	0x37d9, 0x01,
	0x37e3, 0x03,
	0x37f5, 0x20,
	0x3800, 0x00,
	0x3801, 0x14,
	0x3802, 0x00,
	0x3803, 0x0c,
	0x3804, 0x10,
	0x3805, 0x8b,
	0x3806, 0x0c,
	0x3807, 0x43,
	0x3808, 0x10,
	0x3809, 0x80,
	0x380a, 0x0c,
	0x380b, 0x40,
	0x380c, 0x07,
	0x380d, 0x08,
	0x380e, 0x0d,
	0x380f, 0x06,
	0x3810, 0x00,
	0x3811, 0x10,
	0x3812, 0x00,
	0x3813, 0x08,
	0x3814, 0x11,
	0x3815, 0x11,
	0x3820, 0x00,
	0x3821, 0x04,
	0x383c, 0x88,
	0x383d, 0xff,
	0x3842, 0x00,
	0x3d85, 0x17,
	0x3d87, 0x6f,
	0x3d8c, 0x6f,
	0x3d8d, 0x97,
	0x3d90, 0x30,
	0x4000, 0xf8,
	0x4010, 0x28,
	0x4011, 0x01,
	0x4012, 0x0c,
	0x4015, 0x00,
	0x4016, 0x1f,
	0x4017, 0x00,
	0x4018, 0x1f,
	0x401e, 0x01,
	0x401f, 0xa0,
	0x4020, 0x04,
	0x4021, 0x00,
	0x4022, 0x04,
	0x4023, 0x00,
	0x4024, 0x04,
	0x4025, 0x00,
	0x4026, 0x04,
	0x4027, 0x00,
	0x4056, 0x21,
	0x401c, 0x00,
	0x401d, 0x00,
	0x430f, 0x08,
	0x430c, 0xfc,
	0x4500, 0x24,
	0x4501, 0x08,
	0x4502, 0x00,
	0x450a, 0x05,
	0x4640, 0x01,
	0x4641, 0x04,
	0x4642, 0x22,
	0x4643, 0x02,
	0x4645, 0x03,
	0x4809, 0x2b,
	0x480e, 0x02,
	0x4813, 0x90,
	0x481f, 0x38,
	0x4837, 0x08,
	0x4b05, 0x83,
	0x4d00, 0x04,
	0x4d01, 0x30,
	0x4d02, 0xb7,
	0x4d03, 0xaf,
	0x4d04, 0xa9,
	0x4d05, 0xa7,
	0x5000, 0xa7,
	0x5001, 0x00,
	0x5044, 0x00,
	0x5045, 0x50,
	0x5046, 0x10,
	0x5047, 0x4f,
	0x5048, 0x00,
	0x5049, 0x30,
	0x504a, 0x0c,
	0x504b, 0x2f,
	0x5017, 0xfb,
	0x5020, 0x04,
	0x5030, 0x00,
	0x5031, 0x00,
	0x5034, 0x00,
	0x5035, 0x00,
	0x50c0, 0x01,
	0x50c1, 0x00,
	0x55ca, 0x07,
	0x55cb, 0x03,
	0x5300, 0x01,
	0x5360, 0x10,
	0x5361, 0xa0,
	0x5362, 0x0c,
	0x5363, 0x60,
	0x5364, 0x00,
	0x5365, 0x00,
	0x5366, 0x00,
	0x5367, 0x08,
	0x5368, 0x00,
	0x5369, 0x50,
	0x536a, 0x10,
	0x536b, 0x4f,
	0x536c, 0x00,
	0x536d, 0x30,
	0x536e, 0x0c,
	0x536f, 0x2f,
	0x5370, 0x00,
	0x5371, 0x00,
	0x5372, 0x00,
	0x5373, 0x00,
	0x5374, 0x00,
	0x5375, 0x00,
	0x5376, 0x00,
	0x5377, 0x00,
	0x5378, 0x20,
	0x5379, 0x00,
	0x537a, 0x20,
	0x537b, 0x00,
	0x537c, 0x00,
	0x537d, 0x00,
	0x537e, 0x00,
	0x537f, 0x00,
	0x5380, 0x00,
	0x5381, 0x00,
	0x5382, 0x00,
	0x5383, 0x00,
	0x5384, 0x00,
	0x5385, 0x00,
	0x5386, 0x00,
	0x5387, 0x00,
	0x5388, 0x20,
	0x5389, 0x00,
	0x538a, 0x20,
	0x538b, 0x00,
	0x538c, 0x00,
	0x538d, 0x00,
	0x538e, 0x00,
	0x538f, 0x00,
	0x5390, 0x00,
	0x5391, 0x00,
	0x5392, 0x00,
	0x5393, 0x00,
	0x5394, 0x00,
	0x5395, 0x00,
	0x5396, 0x00,
	0x5397, 0x00,
	0x5398, 0x00,
	0x5399, 0x20,
	0x539a, 0x00,
	0x539b, 0x20,
	0x539c, 0x00,
	0x539d, 0x00,
	0x539e, 0x00,
	0x539f, 0x00,
	0x53a0, 0x00,
	0x53a1, 0x00,
	0x53a2, 0x00,
	0x53a3, 0x00,
	0x53a4, 0x00,
	0x53a5, 0x00,
	0x53a6, 0x00,
	0x53a7, 0x00,
	0x53a8, 0x00,
	0x53a9, 0x20,
	0x53aa, 0x00,
	0x53ab, 0x20,
	0x53ac, 0x00,
	0x53ad, 0x00,
	0x53ae, 0x00,
	0x53af, 0x00,
	0x53b0, 0x00,
	0x53b1, 0x00,
	0x53b2, 0x00,
	0x53b3, 0x00,
	0x53b4, 0x00,
	0x53b5, 0x00,
	0x53b6, 0x00,
	0x53b7, 0x00,
	0x53b8, 0x20,
	0x53b9, 0x00,
	0x53ba, 0x20,
	0x53bb, 0x00,
	0x53bc, 0x00,
	0x53bd, 0x00,
	0x53be, 0x00,
	0x53bf, 0x00,
	0x53c0, 0x00,
	0x53c1, 0x00,
	0x53c2, 0x00,
	0x53c3, 0x00,
	0x53c4, 0x00,
	0x53c5, 0x00,
	0x53c6, 0x00,
	0x53c7, 0x00,
	0x53c8, 0x20,
	0x53c9, 0x00,
	0x53ca, 0x20,
	0x53cb, 0x00,
	0x53cc, 0x00,
	0x53cd, 0x00,
	0x53ce, 0x00,
	0x53cf, 0x00,
	0x53d0, 0x00,
	0x53d1, 0x00,
	0x53d2, 0x00,
	0x53d3, 0x00,
	0x53d4, 0x00,
	0x53d5, 0x00,
	0x53d6, 0x00,
	0x53d7, 0x00,
	0x53d8, 0x00,
	0x53d9, 0x20,
	0x53da, 0x00,
	0x53db, 0x20,
	0x53dc, 0x00,
	0x53dd, 0x00,
	0x53de, 0x00,
	0x53df, 0x00,
	0x53e0, 0x00,
	0x53e1, 0x00,
	0x53e2, 0x00,
	0x53e3, 0x00,
	0x53e4, 0x00,
	0x53e5, 0x00,
	0x53e6, 0x00,
	0x53e7, 0x00,
	0x53e8, 0x00,
	0x53e9, 0x20,
	0x53ea, 0x00,
	0x53eb, 0x20,
	0x53ec, 0x00,
	0x53ed, 0x00,
	0x53ee, 0x00,
	0x53ef, 0x00,
	0x53f0, 0x00,
	0x53f1, 0x00,
	0x53f2, 0x00,
	0x53f3, 0x00,
	0x53f4, 0x20,
	0x53f5, 0x00,
	0x53f6, 0x20,
	0x53f7, 0x00,
	0x53f8, 0x70,
	0x53f9, 0x00,
	0x53fa, 0x70,
	0x53fb, 0x00,
	0x53fc, 0x20,
	0x53fd, 0x00,
	0x53fe, 0x20,
	0x53ff, 0x00,
	0x5400, 0x00,
	0x5401, 0x00,
	0x5402, 0x00,
	0x5403, 0x00,
	0x5404, 0x20,
	0x5405, 0x00,
	0x5406, 0x20,
	0x5407, 0x00,
	0x5408, 0x70,
	0x5409, 0x00,
	0x540a, 0x70,
	0x540b, 0x00,
	0x540c, 0x20,
	0x540d, 0x00,
	0x540e, 0x20,
	0x540f, 0x00,
	0x5410, 0x00,
	0x5411, 0x00,
	0x5412, 0x00,
	0x5413, 0x00,
	0x5414, 0x00,
	0x5415, 0x20,
	0x5416, 0x00,
	0x5417, 0x20,
	0x5418, 0x00,
	0x5419, 0x70,
	0x541a, 0x00,
	0x541b, 0x70,
	0x541c, 0x00,
	0x541d, 0x20,
	0x541e, 0x00,
	0x541f, 0x20,
	0x5420, 0x00,
	0x5421, 0x00,
	0x5422, 0x00,
	0x5423, 0x00,
	0x5424, 0x00,
	0x5425, 0x20,
	0x5426, 0x00,
	0x5427, 0x20,
	0x5428, 0x00,
	0x5429, 0x70,
	0x542a, 0x00,
	0x542b, 0x70,
	0x542c, 0x00,
	0x542d, 0x20,
	0x542e, 0x00,
	0x542f, 0x20,
	0x5430, 0x00,
	0x5431, 0x00,
	0x5432, 0x00,
	0x5433, 0x00,
	0x5434, 0x20,
	0x5435, 0x00,
	0x5436, 0x20,
	0x5437, 0x00,
	0x5438, 0x70,
	0x5439, 0x00,
	0x543a, 0x70,
	0x543b, 0x00,
	0x543c, 0x20,
	0x543d, 0x00,
	0x543e, 0x20,
	0x543f, 0x00,
	0x5440, 0x00,
	0x5441, 0x00,
	0x5442, 0x00,
	0x5443, 0x00,
	0x5444, 0x20,
	0x5445, 0x00,
	0x5446, 0x20,
	0x5447, 0x00,
	0x5448, 0x70,
	0x5449, 0x00,
	0x544a, 0x70,
	0x544b, 0x00,
	0x544c, 0x20,
	0x544d, 0x00,
	0x544e, 0x20,
	0x544f, 0x00,
	0x5450, 0x00,
	0x5451, 0x00,
	0x5452, 0x00,
	0x5453, 0x00,
	0x5454, 0x00,
	0x5455, 0x20,
	0x5456, 0x00,
	0x5457, 0x20,
	0x5458, 0x00,
	0x5459, 0x70,
	0x545a, 0x00,
	0x545b, 0x70,
	0x545c, 0x00,
	0x545d, 0x20,
	0x545e, 0x00,
	0x545f, 0x20,
	0x5460, 0x00,
	0x5461, 0x00,
	0x5462, 0x00,
	0x5463, 0x00,
	0x5464, 0x00,
	0x5465, 0x20,
	0x5466, 0x00,
	0x5467, 0x20,
	0x5468, 0x00,
	0x5469, 0x70,
	0x546a, 0x00,
	0x546b, 0x70,
	0x546c, 0x00,
	0x546d, 0x20,
	0x546e, 0x00,
	0x546f, 0x20,
	0x5474, 0x00,
	0x5475, 0x18,
	0x5476, 0x23,
	0x5477, 0x10,
	0x5700, 0x01,
	0x57b8, 0x00,
	0x57b9, 0x7c,
	0x57ba, 0x00,
	0x57bb, 0xa8,
	0x57c0, 0x00,
	0x57c1, 0x00,
	0x57c2, 0x00,
	0x57c3, 0x08,
	0x57c4, 0x00,
	0x57c5, 0x50,
	0x57c6, 0x10,
	0x57c7, 0x4f,
	0x57c8, 0x00,
	0x57c9, 0x30,
	0x57ca, 0x0c,
	0x57cb, 0x2f,
	0x57d4, 0x00,
	0x57d5, 0x00,
	0x57d6, 0x00,
	0x57d7, 0x00,
	0x57d8, 0x00,
	0x57d9, 0x00,
	0x57da, 0x00,
	0x57db, 0x00,
	0x57dc, 0x20,
	0x57dd, 0x00,
	0x57de, 0x20,
	0x57df, 0x00,
	0x57e0, 0x00,
	0x57e1, 0x00,
	0x57e2, 0x00,
	0x57e3, 0x00,
	0x57e4, 0x00,
	0x57e5, 0x00,
	0x57e6, 0x00,
	0x57e7, 0x00,
	0x57e8, 0x00,
	0x57e9, 0x00,
	0x57ea, 0x00,
	0x57eb, 0x00,
	0x57ec, 0x20,
	0x57ed, 0x00,
	0x57ee, 0x20,
	0x57ef, 0x00,
	0x57f0, 0x00,
	0x57f1, 0x00,
	0x57f2, 0x00,
	0x57f3, 0x00,
	0x57f4, 0x00,
	0x57f5, 0x00,
	0x57f6, 0x00,
	0x57f7, 0x00,
	0x57f8, 0x00,
	0x57f9, 0x00,
	0x57fa, 0x00,
	0x57fb, 0x00,
	0x57fc, 0x00,
	0x57fd, 0x20,
	0x57fe, 0x00,
	0x57ff, 0x20,
	0x5800, 0x00,
	0x5801, 0x00,
	0x5802, 0x00,
	0x5803, 0x00,
	0x5804, 0x00,
	0x5805, 0x00,
	0x5806, 0x00,
	0x5807, 0x00,
	0x5808, 0x00,
	0x5809, 0x00,
	0x580a, 0x00,
	0x580b, 0x00,
	0x580c, 0x00,
	0x580d, 0x20,
	0x580e, 0x00,
	0x580f, 0x20,
	0x5810, 0x00,
	0x5811, 0x00,
	0x5812, 0x00,
	0x5813, 0x00,
	0x5814, 0x00,
	0x5815, 0x00,
	0x5816, 0x00,
	0x5817, 0x00,
	0x5818, 0x00,
	0x5819, 0x00,
	0x581a, 0x00,
	0x581b, 0x00,
	0x581c, 0x20,
	0x581d, 0x00,
	0x581e, 0x20,
	0x581f, 0x00,
	0x5820, 0x00,
	0x5821, 0x00,
	0x5822, 0x00,
	0x5823, 0x00,
	0x5824, 0x00,
	0x5825, 0x00,
	0x5826, 0x00,
	0x5827, 0x00,
	0x5828, 0x00,
	0x5829, 0x00,
	0x582a, 0x00,
	0x582b, 0x00,
	0x582c, 0x20,
	0x582d, 0x00,
	0x582e, 0x20,
	0x582f, 0x00,
	0x5830, 0x00,
	0x5831, 0x00,
	0x5832, 0x00,
	0x5833, 0x00,
	0x5834, 0x00,
	0x5835, 0x00,
	0x5836, 0x00,
	0x5837, 0x00,
	0x5838, 0x00,
	0x5839, 0x00,
	0x583a, 0x00,
	0x583b, 0x00,
	0x583c, 0x00,
	0x583d, 0x20,
	0x583e, 0x00,
	0x583f, 0x20,
	0x5840, 0x00,
	0x5841, 0x00,
	0x5842, 0x00,
	0x5843, 0x00,
	0x5844, 0x00,
	0x5845, 0x00,
	0x5846, 0x00,
	0x5847, 0x00,
	0x5848, 0x00,
	0x5849, 0x00,
	0x584a, 0x00,
	0x584b, 0x00,
	0x584c, 0x00,
	0x584d, 0x20,
	0x584e, 0x00,
	0x584f, 0x20,
	0x5850, 0x00,
	0x5851, 0x00,
	0x5852, 0x00,
	0x5853, 0x00,
	0x5854, 0x00,
	0x5855, 0x00,
	0x5856, 0x00,
	0x5857, 0x00,
	0x5858, 0x00,
	0x5859, 0x00,
	0x585a, 0x00,
	0x585b, 0x00,
	0x585c, 0x00,
	0x585d, 0x00,
	0x585e, 0x00,
	0x585f, 0x00,
	0x5860, 0x00,
	0x5861, 0x00,
	0x5862, 0x00,
	0x5863, 0x00,
	0x5864, 0x08,
	0x5865, 0x00,
	0x5866, 0x00,
	0x5867, 0x00,
	0x5868, 0x08,
	0x5869, 0x00,
	0x586a, 0x00,
	0x586b, 0x00,
	0x586c, 0x00,
	0x586d, 0x00,
	0x586e, 0x00,
	0x586f, 0x00,
	0x5870, 0x00,
	0x5871, 0x00,
	0x5872, 0x00,
	0x5873, 0x00,
	0x5874, 0x00,
	0x5875, 0x00,
	0x5876, 0x00,
	0x5877, 0x00,
	0x5878, 0x00,
	0x5879, 0x00,
	0x587a, 0x00,
	0x587b, 0x00,
	0x587c, 0x00,
	0x587d, 0x00,
	0x587e, 0x00,
	0x587f, 0x00,
	0x5880, 0x00,
	0x5881, 0x00,
	0x5882, 0x00,
	0x5883, 0x00,
	0x5884, 0x0c,
	0x5885, 0x00,
	0x5886, 0x00,
	0x5887, 0x00,
	0x5888, 0x0c,
	0x5889, 0x00,
	0x588a, 0x00,
	0x588b, 0x00,
	0x588c, 0x00,
	0x588d, 0x00,
	0x588e, 0x00,
	0x588f, 0x00,
	0x5890, 0x00,
	0x5891, 0x00,
	0x5892, 0x00,
	0x5893, 0x00,
	0x5894, 0x00,
	0x5895, 0x00,
	0x5896, 0x00,
	0x5897, 0x00,
	0x5898, 0x00,
	0x5899, 0x00,
	0x589a, 0x00,
	0x589b, 0x00,
	0x589c, 0x00,
	0x589d, 0x00,
	0x589e, 0x00,
	0x589f, 0x00,
	0x58a0, 0x00,
	0x58a1, 0x00,
	0x58a2, 0x00,
	0x58a3, 0x00,
	0x58a4, 0x00,
	0x58a5, 0x00,
	0x58a6, 0x0c,
	0x58a7, 0x00,
	0x58a8, 0x00,
	0x58a9, 0x00,
	0x58aa, 0x0c,
	0x58ab, 0x00,
	0x58ac, 0x00,
	0x58ad, 0x00,
	0x58ae, 0x00,
	0x58af, 0x00,
	0x58b0, 0x00,
	0x58b1, 0x00,
	0x58b2, 0x00,
	0x58b3, 0x00,
	0x58b4, 0x00,
	0x58b5, 0x00,
	0x58b6, 0x00,
	0x58b7, 0x00,
	0x58b8, 0x00,
	0x58b9, 0x00,
	0x58ba, 0x00,
	0x58bb, 0x00,
	0x58bc, 0x00,
	0x58bd, 0x00,
	0x58be, 0x00,
	0x58bf, 0x00,
	0x58c0, 0x00,
	0x58c1, 0x00,
	0x58c2, 0x00,
	0x58c3, 0x00,
	0x58c4, 0x00,
	0x58c5, 0x00,
	0x58c6, 0x08,
	0x58c7, 0x00,
	0x58c8, 0x00,
	0x58c9, 0x00,
	0x58ca, 0x08,
	0x58cb, 0x00,
	0x58cc, 0x00,
	0x58cd, 0x00,
	0x58ce, 0x00,
	0x58cf, 0x00,
	0x58d0, 0x00,
	0x58d1, 0x00,
	0x58d2, 0x00,
	0x58d3, 0x00,
	0x58d4, 0x00,
	0x58d5, 0x00,
	0x58d6, 0x00,
	0x58d7, 0x00,
	0x58d8, 0x00,
	0x58d9, 0x00,
	0x58da, 0x00,
	0x58db, 0x00,
	0x58dc, 0x00,
	0x58dd, 0x00,
	0x58de, 0x00,
	0x58df, 0x00,
	0x58e0, 0x00,
	0x58e1, 0x00,
	0x58e2, 0x00,
	0x58e3, 0x00,
	0x58e4, 0x08,
	0x58e5, 0x00,
	0x58e6, 0x00,
	0x58e7, 0x00,
	0x58e8, 0x08,
	0x58e9, 0x00,
	0x58ea, 0x00,
	0x58eb, 0x00,
	0x58ec, 0x00,
	0x58ed, 0x00,
	0x58ee, 0x00,
	0x58ef, 0x00,
	0x58f0, 0x00,
	0x58f1, 0x00,
	0x58f2, 0x00,
	0x58f3, 0x00,
	0x58f4, 0x00,
	0x58f5, 0x00,
	0x58f6, 0x00,
	0x58f7, 0x00,
	0x58f8, 0x00,
	0x58f9, 0x00,
	0x58fa, 0x00,
	0x58fb, 0x00,
	0x58fc, 0x00,
	0x58fd, 0x00,
	0x58fe, 0x00,
	0x58ff, 0x00,
	0x5900, 0x00,
	0x5901, 0x00,
	0x5902, 0x00,
	0x5903, 0x00,
	0x5904, 0x0c,
	0x5905, 0x00,
	0x5906, 0x00,
	0x5907, 0x00,
	0x5908, 0x0c,
	0x5909, 0x00,
	0x590a, 0x00,
	0x590b, 0x00,
	0x590c, 0x00,
	0x590d, 0x00,
	0x590e, 0x00,
	0x590f, 0x00,
	0x5910, 0x00,
	0x5911, 0x00,
	0x5912, 0x00,
	0x5913, 0x00,
	0x5914, 0x00,
	0x5915, 0x00,
	0x5916, 0x00,
	0x5917, 0x00,
	0x5918, 0x00,
	0x5919, 0x00,
	0x591a, 0x00,
	0x591b, 0x00,
	0x591c, 0x00,
	0x591d, 0x00,
	0x591e, 0x00,
	0x591f, 0x00,
	0x5920, 0x00,
	0x5921, 0x00,
	0x5922, 0x00,
	0x5923, 0x00,
	0x5924, 0x00,
	0x5925, 0x00,
	0x5926, 0x0c,
	0x5927, 0x00,
	0x5928, 0x00,
	0x5929, 0x00,
	0x592a, 0x0c,
	0x592b, 0x00,
	0x592c, 0x00,
	0x592d, 0x00,
	0x592e, 0x00,
	0x592f, 0x00,
	0x5930, 0x00,
	0x5931, 0x00,
	0x5932, 0x00,
	0x5933, 0x00,
	0x5934, 0x00,
	0x5935, 0x00,
	0x5936, 0x00,
	0x5937, 0x00,
	0x5938, 0x00,
	0x5939, 0x00,
	0x593a, 0x00,
	0x593b, 0x00,
	0x593c, 0x00,
	0x593d, 0x00,
	0x593e, 0x00,
	0x593f, 0x00,
	0x5940, 0x00,
	0x5941, 0x00,
	0x5942, 0x00,
	0x5943, 0x00,
	0x5944, 0x00,
	0x5945, 0x00,
	0x5946, 0x08,
	0x5947, 0x00,
	0x5948, 0x00,
	0x5949, 0x00,
	0x594a, 0x08,
	0x594b, 0x00,
	0x594c, 0x00,
	0x594d, 0x00,
	0x594e, 0x00,
	0x594f, 0x00,
	0x5950, 0x00,
	0x5951, 0x00,
	0x5952, 0x00,
	0x5953, 0x00,
	0x5956, 0x40,
	0x5958, 0x00,
	0x5959, 0x10,
	0x595a, 0x00,
	0x595b, 0x10,
	0x595c, 0x10,
	0x595d, 0x80,
	0x595e, 0x0c,
	0x595f, 0x40,
	0x5954, 0x04,
	0x5a90, 0x01,
	0x5a10, 0x00,
	0x5a11, 0x00,
	0x5a12, 0x00,
	0x5a13, 0x00,
	0x5a14, 0x00,
	0x5a15, 0x00,
	0x5a16, 0x00,
	0x5a17, 0x00,
	0x5a18, 0x20,
	0x5a19, 0x00,
	0x5a1a, 0x20,
	0x5a1b, 0x00,
	0x5a1c, 0x00,
	0x5a1d, 0x00,
	0x5a1e, 0x00,
	0x5a1f, 0x00,
	0x5a20, 0x00,
	0x5a21, 0x00,
	0x5a22, 0x00,
	0x5a23, 0x00,
	0x5a24, 0x00,
	0x5a25, 0x00,
	0x5a26, 0x00,
	0x5a27, 0x00,
	0x5a28, 0x20,
	0x5a29, 0x00,
	0x5a2a, 0x20,
	0x5a2b, 0x00,
	0x5a2c, 0x00,
	0x5a2d, 0x00,
	0x5a2e, 0x00,
	0x5a2f, 0x00,
	0x5a30, 0x00,
	0x5a31, 0x00,
	0x5a32, 0x00,
	0x5a33, 0x00,
	0x5a34, 0x00,
	0x5a35, 0x00,
	0x5a36, 0x00,
	0x5a37, 0x00,
	0x5a38, 0x00,
	0x5a39, 0x20,
	0x5a3a, 0x00,
	0x5a3b, 0x20,
	0x5a3c, 0x00,
	0x5a3d, 0x00,
	0x5a3e, 0x00,
	0x5a3f, 0x00,
	0x5a40, 0x00,
	0x5a41, 0x00,
	0x5a42, 0x00,
	0x5a43, 0x00,
	0x5a44, 0x00,
	0x5a45, 0x00,
	0x5a46, 0x00,
	0x5a47, 0x00,
	0x5a48, 0x00,
	0x5a49, 0x20,
	0x5a4a, 0x00,
	0x5a4b, 0x20,
	0x5a4c, 0x00,
	0x5a4d, 0x00,
	0x5a4e, 0x00,
	0x5a4f, 0x00,
	0x5a50, 0x00,
	0x5a51, 0x00,
	0x5a52, 0x00,
	0x5a53, 0x00,
	0x5a54, 0x00,
	0x5a55, 0x00,
	0x5a56, 0x00,
	0x5a57, 0x00,
	0x5a58, 0x20,
	0x5a59, 0x00,
	0x5a5a, 0x20,
	0x5a5b, 0x00,
	0x5a5c, 0x00,
	0x5a5d, 0x00,
	0x5a5e, 0x00,
	0x5a5f, 0x00,
	0x5a60, 0x00,
	0x5a61, 0x00,
	0x5a62, 0x00,
	0x5a63, 0x00,
	0x5a64, 0x00,
	0x5a65, 0x00,
	0x5a66, 0x00,
	0x5a67, 0x00,
	0x5a68, 0x20,
	0x5a69, 0x00,
	0x5a6a, 0x20,
	0x5a6b, 0x00,
	0x5a6c, 0x00,
	0x5a6d, 0x00,
	0x5a6e, 0x00,
	0x5a6f, 0x00,
	0x5a70, 0x00,
	0x5a71, 0x00,
	0x5a72, 0x00,
	0x5a73, 0x00,
	0x5a74, 0x00,
	0x5a75, 0x00,
	0x5a76, 0x00,
	0x5a77, 0x00,
	0x5a78, 0x00,
	0x5a79, 0x20,
	0x5a7a, 0x00,
	0x5a7b, 0x20,
	0x5a7c, 0x00,
	0x5a7d, 0x00,
	0x5a7e, 0x00,
	0x5a7f, 0x00,
	0x5a80, 0x00,
	0x5a81, 0x00,
	0x5a82, 0x00,
	0x5a83, 0x00,
	0x5a84, 0x00,
	0x5a85, 0x00,
	0x5a86, 0x00,
	0x5a87, 0x00,
	0x5a88, 0x00,
	0x5a89, 0x20,
	0x5a8a, 0x00,
	0x5a8b, 0x20,
	0x5a8c, 0x00,
	0x5a8d, 0x00,
	0x5a8e, 0x00,
	0x5a8f, 0x00,
	0x5280, 0x00,
	0x5281, 0x10,
	0x5282, 0x0f,
	0x5283, 0x37,
	0x5285, 0x07,
	0x5500, 0xbf,
	0x5501, 0xf3,
	0x5502, 0x4d,
	0x5503, 0x1b,
	0x5504, 0xe0,
	0x5505, 0x10,
	0x5506, 0x3f,
	0x5507, 0x30,
	0x5508, 0x04,
	0x5509, 0x0f,
	0x550a, 0x43,
	0x5e01, 0xf3,
	0x5e02, 0x4d,
	0x5e03, 0x1b,
	0x5e04, 0xe0,
	0x5e05, 0x10,
	0x5e06, 0x3f,
	0x5e07, 0x30,
	0x5e08, 0x04,
	0x5e09, 0x0f,
	0x5e0a, 0x43,
	0x3025, 0x03,
	0x3664, 0x03,
	0x3668, 0xf0,
	0x3669, 0x0e,
	0x3406, 0x08,
	0x3408, 0x03,
	0x4a00, 0x08,
	0x0304, 0x15,
	0x4837, 0x0d,
	0x401a, 0x40,
	0x0100, 0x01
};

kal_uint16 addr_data_pair_preview_ov13870_v1[] = {
	0x383d, 0xc0,
	0x0303, 0x20,
	0x0304, 0x25,
	0x0317, 0x00,
	0x3016, 0x96,
	0x3018, 0x70,
	0x340c, 0x0d,
	0x340d, 0x24,
	0x3501, 0x06,
	0x3502, 0x5e,
	0x3600, 0x00,
	0x3602, 0x0b,
	0x3621, 0x88,
	0x3622, 0x68,
	0x366c, 0x04,
	0x3726, 0x21,
	0x3800, 0x00,
	0x3801, 0x00,
	0x3802, 0x00,
	0x3803, 0x00,
	0x3804, 0x10,
	0x3805, 0x9f,
	0x3806, 0x0c,
	0x3807, 0x5f,
	0x3808, 0x08,
	0x3809, 0x40,
	0x380a, 0x06,
	0x380b, 0x20,
	0x380c, 0x07,
	0x380d, 0x08,
	0x380e, 0x0d,
	0x380f, 0x04,
	0x3810, 0x00,
	0x3811, 0x07,
	0x3812, 0x00,
	0x3813, 0x08,
	0x3814, 0x11,
	0x3815, 0x31,
	0x3820, 0x00,
	0x3821, 0x04,
	0x3842, 0x40,
	0x4016, 0x0f,
	0x4018, 0x0f,
	0x4837, 0x18,
	0x5000, 0x86,
	0x5001, 0x20,
	0x5044, 0x00,
	0x5045, 0x20,
	0x5046, 0x10,
	0x5047, 0x80,
	0x5048, 0x00,
	0x5049, 0x28,
	0x504a, 0x0c,
	0x504b, 0x60,
	0x5017, 0xbb,
	0x50c0, 0x01,
	0x50c1, 0x00,
	0x5600, 0x01,
	0x5604, 0x01,
	0x5605, 0x01,
	0x5606, 0x01,
	0x5607, 0x01,
	0x5608, 0x03,
	0x5609, 0x01,
	0x560a, 0x01,
	0x560b, 0x03,
};

kal_uint16 addr_data_pair_capture_ov13870_v1[] = {
	0x383d, 0xff,
	0x0303, 0x00,
	0x0304, 0x15,
	0x0317, 0x00,
	0x3016, 0xb4,
	0x3018, 0xf0,
	0x340c, 0x0c,
	0x340d, 0xce,
	0x3501, 0x0c,
	0x3502, 0xe1,
	0x3600, 0x00,
	0x3602, 0x0a,
	0x3621, 0x88,
	0x3622, 0x68,
	0x366c, 0x54,
	0x3726, 0x20,
	0x3800, 0x00,
	0x3801, 0x14,
	0x3802, 0x00,
	0x3803, 0x0c,
	0x3804, 0x10,
	0x3805, 0x8b,
	0x3806, 0x0c,
	0x3807, 0x43,
	0x3808, 0x10,
	0x3809, 0x80,
	0x380a, 0x0c,
	0x380b, 0x40,
	0x380c, 0x07,
	0x380d, 0x08,
	0x380e, 0x0d,
	0x380f, 0x06,
	0x3810, 0x00,
	0x3811, 0x10,
	0x3812, 0x00,
	0x3813, 0x08,
	0x3814, 0x11,
	0x3815, 0x11,
	0x3820, 0x00,
	0x3821, 0x04,
	0x3842, 0x00,
	0x4016, 0x1f,
	0x4018, 0x1f,
	0x4837, 0x0d,
	0x5000, 0xa7,
	0x5001, 0x00,
	0x5044, 0x00,
	0x5045, 0x50,
	0x5046, 0x10,
	0x5047, 0x4f,
	0x5048, 0x00,
	0x5049, 0x30,
	0x504a, 0x0c,
	0x504b, 0x2f,
	0x5017, 0xfb,
	0x50c0, 0x01,
	0x50c1, 0x00,
	0x5600, 0x03,
	0x5604, 0x01,
	0x5605, 0x01,
	0x5606, 0x01,
	0x5607, 0x01,
	0x5608, 0x01,
	0x5609, 0x01,
	0x560a, 0x01,
	0x560b, 0x01,
};

kal_uint16 addr_data_pair_normal_video_ov13870_v1[] = {
	0x383d, 0xff,
	0x0303, 0x00,
	0x0304, 0x15,
	0x0317, 0x00,
	0x3016, 0xb4,
	0x3018, 0xf0,
	0x340c, 0x0c,
	0x340d, 0xce,
	0x3501, 0x0c,
	0x3502, 0xe1,
	0x3600, 0x00,
	0x3602, 0x0a,
	0x3621, 0x88,
	0x3622, 0x68,
	0x366c, 0x54,
	0x3726, 0x20,
	0x3800, 0x00,
	0x3801, 0x14,
	0x3802, 0x00,
	0x3803, 0x0c,
	0x3804, 0x10,
	0x3805, 0x8b,
	0x3806, 0x0c,
	0x3807, 0x43,
	0x3808, 0x10,
	0x3809, 0x80,
	0x380a, 0x09,
	0x380b, 0x48,
	0x380c, 0x07,
	0x380d, 0x08,
	0x380e, 0x0d,
	0x380f, 0x06,
	0x3810, 0x00,
	0x3811, 0x10,
	0x3812, 0x00,
	0x3813, 0x08,
	0x3814, 0x11,
	0x3815, 0x11,
	0x3820, 0x00,
	0x3821, 0x04,
	0x3842, 0x00,
	0x4016, 0x1f,
	0x4018, 0x1f,
	0x4837, 0x0d,
	0x5000, 0xa7,
	0x5001, 0x00,
	0x5044, 0x00,
	0x5045, 0x50,
	0x5046, 0x10,
	0x5047, 0x4f,
	0x5048, 0x00,
	0x5049, 0x30,
	0x504a, 0x0c,
	0x504b, 0x2f,
	0x5017, 0xfb,
	0x50c0, 0x01,
	0x50c1, 0x00,
	0x5600, 0x03,
	0x5604, 0x01,
	0x5605, 0x01,
	0x5606, 0x01,
	0x5607, 0x01,
	0x5608, 0x01,
	0x5609, 0x01,
	0x560a, 0x01,
	0x560b, 0x01,
};

kal_uint16 addr_data_pair_hs_video_ov13870_v1[] = {
	0x383d, 0xff,
	0x0303, 0x10,
	0x0304, 0x15,
	0x0317, 0x02,
	0x3016, 0x96,
	0x3018, 0x70,
	0x340c, 0xff,
	0x340d, 0xff,
	0x3501, 0x03,
	0x3502, 0x3c,
	0x3600, 0x0c,
	0x3602, 0x0b,
	0x3621, 0x8f,
	0x3622, 0x98,
	0x366c, 0x04,
	0x3726, 0x21,
	0x3800, 0x00,
	0x3801, 0x14,
	0x3802, 0x00,
	0x3803, 0x0c,
	0x3804, 0x10,
	0x3805, 0x8b,
	0x3806, 0x0c,
	0x3807, 0x43,
	0x3808, 0x04,
	0x3809, 0x20,
	0x380a, 0x03,
	0x380b, 0x10,
	0x380c, 0x03,
	0x380d, 0x68,
	0x380e, 0x03,
	0x380f, 0x5c,
	0x3810, 0x00,
	0x3811, 0x03,
	0x3812, 0x00,
	0x3813, 0x08,
	0x3814, 0x31,
	0x3815, 0x53,
	0x3820, 0x00,
	0x3821, 0x05,
	0x3842, 0x40,
	0x4016, 0x07,
	0x4018, 0x07,
	0x4837, 0x1a,
	0x5000, 0xc6,
	0x5001, 0x00,
	0x5044, 0x00,
	0x5045, 0x20,
	0x5046, 0x10,
	0x5047, 0x80,
	0x5048, 0x00,
	0x5049, 0x28,
	0x504a, 0x0c,
	0x504b, 0x60,
	0x5017, 0xfb,
	0x50c0, 0xf1,
	0x50c1, 0x04,
	0x5600, 0x03,
	0x5604, 0x01,
	0x5605, 0x01,
	0x5606, 0x01,
	0x5607, 0x01,
	0x5608, 0x01,
	0x5609, 0x01,
	0x560a, 0x01,
	0x560b, 0x01,
};

kal_uint16 addr_data_pair_slim_video_ov13870_v1[] = {
	0x383d, 0xff,
	0x0303, 0x10,
	0x0304, 0x15,
	0x0317, 0x02,
	0x3016, 0x96,
	0x3018, 0x70,
	0x340c, 0xff,
	0x340d, 0xff,
	0x3501, 0x03,
	0x3502, 0x3c,
	0x3600, 0x0c,
	0x3602, 0x0b,
	0x3621, 0x8f,
	0x3622, 0x98,
	0x366c, 0x04,
	0x3726, 0x21,
	0x3800, 0x00,
	0x3801, 0x14,
	0x3802, 0x00,
	0x3803, 0x0c,
	0x3804, 0x10,
	0x3805, 0x8b,
	0x3806, 0x0c,
	0x3807, 0x43,
	0x3808, 0x04,
	0x3809, 0x20,
	0x380a, 0x03,
	0x380b, 0x10,
	0x380c, 0x0d,
	0x380d, 0xa0,
	0x380e, 0x03,
	0x380f, 0x5c,
	0x3810, 0x00,
	0x3811, 0x03,
	0x3812, 0x00,
	0x3813, 0x08,
	0x3814, 0x31,
	0x3815, 0x53,
	0x3820, 0x00,
	0x3821, 0x05,
	0x3842, 0x40,
	0x4016, 0x07,
	0x4018, 0x07,
	0x4837, 0x1a,
	0x5000, 0xc6,
	0x5001, 0x00,
	0x5044, 0x00,
	0x5045, 0x20,
	0x5046, 0x10,
	0x5047, 0x80,
	0x5048, 0x00,
	0x5049, 0x28,
	0x504a, 0x0c,
	0x504b, 0x60,
	0x5017, 0xfb,
	0x50c0, 0xf1,
	0x50c1, 0x04,
	0x5600, 0x03,
	0x5604, 0x01,
	0x5605, 0x01,
	0x5606, 0x01,
	0x5607, 0x01,
	0x5608, 0x01,
	0x5609, 0x01,
	0x560a, 0x01,
	0x560b, 0x01,
};

kal_uint16 addr_data_pair_disable_pdaf_vc_full_size[] = {
	0x3661, 0x0c,
	0x366c, 0x54,
	0x3680, 0x00,
	0x369f, 0x00,
	0x36a1, 0x00,
	0x36a3, 0x00,
	0x36a5, 0x00,
	0x36a7, 0x00,
	0x36a9, 0x00,
	0x36aa, 0x00,
	0x36ab, 0x00,
	0x36ac, 0x00,
	0x36ad, 0x00,
	0x36ae, 0x00,
	0x36af, 0x00,
	0x3687, 0x00,
	0x3688, 0x00,
	0x3689, 0x00,
	0x368a, 0x00,
	0x368b, 0x00,
	0x4640, 0x01,
	0x4641, 0x04,
	0x4642, 0x22,
	0x4643, 0x02,
	0x4645, 0x03,
	0x480e, 0x02,
	0x4813, 0x90,
	0x4837, 0x0d,
	0x5001, 0x00,
	0x5017, 0xfb
};

kal_uint16 addr_data_pair_enable_pdaf_vc_full_size[] = {
	0x3661, 0x0f,
	0x366c, 0x14,
	0x3680, 0x00,
	0x369f, 0x00,
	0x36a1, 0x00,
	0x36a3, 0x00,
	0x36a5, 0x00,
	0x36a7, 0x00,
	0x36a9, 0x00,
	0x36aa, 0x00,
	0x36ab, 0x00,
	0x36ac, 0x00,
	0x36ad, 0x00,
	0x36ae, 0x00,
	0x36af, 0x00,
	0x3687, 0x00,
	0x3688, 0x00,
	0x3689, 0x00,
	0x368a, 0x00,
	0x368b, 0x00,
	0x4640, 0x00,
	0x4641, 0x20,
	0x4642, 0x62,
	0x4643, 0x0a,
	0x4645, 0x04,
	0x480e, 0x07,
	0x4813, 0x98,
	0x4837, 0x08,
	0x5001, 0x00,
	0x5017, 0xfa,
};


static void sensor_enable_pdaf_vc_full_size(void)
{
	table_write_cmos_sensor_byte(addr_data_pair_enable_pdaf_vc_full_size,
		sizeof(addr_data_pair_enable_pdaf_vc_full_size)
		/ sizeof(kal_uint16));
	g_pdaf_vc_full_size_enabled = KAL_TRUE;
}

static void sensor_disable_pdaf_vc_full_size_if_enabled(void)
{
	if (g_pdaf_vc_full_size_enabled) {
		table_write_cmos_sensor_byte(
			addr_data_pair_disable_pdaf_vc_full_size,
			sizeof(addr_data_pair_disable_pdaf_vc_full_size)
			/ sizeof(kal_uint16));
		g_pdaf_vc_full_size_enabled = KAL_FALSE;
	}
}

static void sensor_init_v1(void)
{
	write_cmos_sensor_byte(0x301e, 0x00);
	mdelay(1);

	table_write_cmos_sensor_byte(addr_data_pair_init_ov13870_v1,
		sizeof(addr_data_pair_init_ov13870_v1)
		/ sizeof(kal_uint16));
}


static void preview_setting_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	sensor_disable_pdaf_vc_full_size_if_enabled();

	/* 2112X1568_60FPS_MIPI_4_LANE_656Mbps */
	table_write_cmos_sensor_byte(addr_data_pair_preview_ov13870_v1,
		sizeof(addr_data_pair_preview_ov13870_v1)
		/ sizeof(kal_uint16));

	write_cmos_sensor_byte(0x0100, 0x01);
}

static void capture_setting_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	/* 4224X3136_FULL_30FPS_MIPI_4_LANE_1200Mbps */
	table_write_cmos_sensor_byte(addr_data_pair_capture_ov13870_v1,
		sizeof(addr_data_pair_capture_ov13870_v1)
		/ sizeof(kal_uint16));
	write_cmos_sensor_byte(0x0100, 0x01);
}

static void capture_setting_pdaf_raw_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	/* 4224X3136_FULL_30FPS_MIPI_4_LANE_1200Mbps with pdaf raw */
	table_write_cmos_sensor_byte(addr_data_pair_capture_ov13870_v1,
		sizeof(addr_data_pair_capture_ov13870_v1)
		/ sizeof(kal_uint16));
	write_cmos_sensor_byte(0x5001, 0x04);
	write_cmos_sensor_byte(0x0100, 0x01);
}

static void capture_setting_pdaf_vc_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	/* 4224X3136_FULL_30FPS_MIPI_4_LANE_1200Mbps with pdaf vc */
	table_write_cmos_sensor_byte(addr_data_pair_capture_ov13870_v1,
		sizeof(addr_data_pair_capture_ov13870_v1)
		/ sizeof(kal_uint16));

	sensor_enable_pdaf_vc_full_size();
	write_cmos_sensor_byte(0x0100, 0x01);
}

static void normal_video_setting_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	sensor_disable_pdaf_vc_full_size_if_enabled();

	/* 4224X2376_FULL_16_9_30FPS_MIPI_4_LANE_1200Mbps */
	table_write_cmos_sensor_byte(addr_data_pair_normal_video_ov13870_v1,
		sizeof(addr_data_pair_normal_video_ov13870_v1)
		/ sizeof(kal_uint16));

	write_cmos_sensor_byte(0x0100, 0x01);
}


static void hs_video_setting_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	sensor_disable_pdaf_vc_full_size_if_enabled();

	/* 1056X784_120FPS_MIPI_4_LANE_600Mbps */
	table_write_cmos_sensor_byte(addr_data_pair_hs_video_ov13870_v1,
		sizeof(addr_data_pair_hs_video_ov13870_v1)
		/ sizeof(kal_uint16));

	write_cmos_sensor_byte(0x0100, 0x01);
}

static void slim_video_setting_v1(void)
{
	write_cmos_sensor_byte(0x0100, 0x00);
	sensor_disable_pdaf_vc_full_size_if_enabled();

	/* 1056X784_30FPS_MIPI_4_LANE_600Mbps */
	table_write_cmos_sensor_byte(addr_data_pair_slim_video_ov13870_v1,
		sizeof(addr_data_pair_slim_video_ov13870_v1)
		/ sizeof(kal_uint16));

	write_cmos_sensor_byte(0x0100, 0x01);
}

static void custom1_setting_v1(void)
{
	preview_setting_v1();
}

static void custom2_setting_v1(void)
{
	preview_setting_v1();
}

static void custom3_setting_v1(void)
{
	preview_setting_v1();
}

static void custom4_setting_v1(void)
{
	preview_setting_v1();
}

static void custom5_setting_v1(void)
{
	preview_setting_v1();
}

#endif
